﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LabelPrintSystem
{
    public partial class FrmClientProcode : Form
    {
        public string LblText = "请输入客户成品序列号(1P)";
        public FrmClientProcode()
        {
            InitializeComponent();
            textProductID.SelectAll();
            textProductID.Focus();
        }
        protected override void OnShown(EventArgs e)
        {
            label1.Text = LblText;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void textProductID_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == 13)
            {
                button1_Click(sender, e);
            }
        }

    }
}
